package com.you.weixinpay.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzm
 * @since 2025-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order_info")
public class TOrderInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单标题
     */
    @TableField("title")
    private String title;

    /**
     * 商户订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 支付产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 订单金额(元)
     */
    @TableField("total_fee")
    private BigDecimal totalFee;

    /**
     * 订单二维码链接
     */
    @TableField("code_url")
    private String codeUrl;

    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;

    /**
     * 支付方式
     */
    @TableField("payment_type")
    private String paymentType;
}
